home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13617 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: nuclear.microserve.net!news
  2. From: avenger@zola.trend1.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: clearing the screen, in Linux
  5. Date: 26 Mar 1996 04:03:14 GMT
  6. Organization: Team OS/2
  7. Message-ID: <4j7qa2$5a8@crash.microserve.net>
  8. References: <31564CDA.DB1@ljusdal.se> <4j5k9r$as1@netnews.upenn.edu>
  9. Reply-To: avenger@zola.trend1.com
  10. NNTP-Posting-Host: 205.160.113.85
  11. X-Newsreader: IBM NewsReader/2 v1.03
  12.  
  13. In <4j5k9r$as1@netnews.upenn.edu>, son@red.seas.upenn.edu (Sonny) writes:
  14. >use the system function in 
  15. >#include<stdlib.h>
  16. >
  17. >system("clear");
  18. >
  19. >Marcsu (marcus.berggren@ljusdal.se) wrote:
  20. >: Could someone plese help me with this one!
  21. >: I need to know what function to call and what header file to include.
  22. >
  23. >: Be well
  24. >
  25. >: /marcsu
  26. >
  27. >: marcus.berggren@ljusdal.se
  28. >
  29. >--
  30. >
  31.  
  32. You could also send the terminal a VT100 escape-code to clear the screen.
  33.  
  34. try
  35.  
  36. cout << "\027]2J";
  37.  
  38. I think that should probably work. It will be faster as well.
  39.  
  40. Hope this helps.
  41.  
  42. Freely Yours,
  43.  
  44. GlassAvenger
  45. =============================================
  46. Just say NO to WIN-NT!!!! Try OS/2 Warp.
  47. =============================================
  48.  
  49.